package com.dataart.training.crimequalification.domain;

import com.dataart.training.crimequalification.entity.ActFeatureEntity;
import com.dataart.training.crimequalification.entity.CriminalActEntity;

public class ObjectiveSide {

    //-----------------------------------------------------

    private CriminalActEntity act;
    private ActFeatureEntity actFeature;

    //-----------------------------------------------------

    public ObjectiveSide(CriminalActEntity act, ActFeatureEntity actFeature) {
        this.act = act;
        this.actFeature = actFeature;
    }

    //-----------------------------------------------------

    @Override
    public String toString() {

        StringBuilder sb = new StringBuilder("Объективная сторона: [ ");

        sb.append(act.toString()).append(" ] [ ").append(actFeature.toString()).append(" ] ]");

        return sb.toString();

    }

    //-----------------------------------------------------

    public CriminalActEntity getAct() {
        return act;
    }

    public void setAct(CriminalActEntity act) {
        this.act = act;
    }

    public ActFeatureEntity getActFeature() {
        return actFeature;
    }

    public void setActFeature(ActFeatureEntity actFeature) {
        this.actFeature = actFeature;
    }
}
